package com.web.spider.youku.util;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 * @author cherrish
 * @name LoadPropertyUtil
 * @date 2019/4/7 22:00
 * @desc TODO
 */
public class LoadPropertyUtil {
    public static String getYouKu(String key){
        String value = "";
        Locale locale = Locale.getDefault();
        ResourceBundle localResource = ResourceBundle.getBundle("youku", locale);
//        ResourceBundle localResource = ResourceBundle.getBundle("youku");
        value = localResource.getString(key);
        return value;
    }
}
